FROM hollisho/php74-centos

LABEL maintainer="Hollis Ho"

ARG PHP_VERSION
ARG PHP_EXTENSIONS
ENV PHP_CONF_DIR  "/usr/local/php/etc/conf.d"
ARG TZ

# 编译安装
COPY ./extensions /tmp/extensions
WORKDIR /tmp/extensions
RUN chmod +x install.sh \
&& sh install.sh

# Install composer and change it's cache home
RUN chmod +x install-composer.sh \
&& sh install-composer.sh \
&& rm -rf /tmp/extensions

# Install git
RUN yum install -y git

ENV COMPOSER_HOME=/tmp/composer

# CMD ["php-fpm", "-F"]
